add column as index pandas

40

add column as index pandas -

df['new_col'] = range(1, len(df) + 1)

Comments

Submit
0 Comments